<template>
  <div class="error-403">
    <el-row type="flex" justify="center" align="middle" style="height: 100vh">
      <el-col :span="12">
        <el-result
          icon="warning"
          title="404 Not Found"
          sub-title="抱歉，没有找到该页面。"
        >
          <template #extra>
            <el-button type="primary" @click="goBack">返回首页</el-button>
          </template>
        </el-result>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.push('/home')
}
</script>

<style scoped lang="scss">
.error-403 {
  text-align: center;
}
</style>
